package com.ruoyi.dr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dr.mapper.DrLiveDetailsDataMapper;
import com.ruoyi.dr.domain.DrLiveDetailsData;
import com.ruoyi.dr.service.IDrLiveDetailsDataService;

/**
 * 达人直播数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-12
 */
@Service
public class DrLiveDetailsDataServiceImpl implements IDrLiveDetailsDataService 
{
    @Autowired
    private DrLiveDetailsDataMapper drLiveDetailsDataMapper;

    /**
     * 查询达人直播数据
     * 
     * @param id 达人直播数据主键
     * @return 达人直播数据
     */
    @Override
    public DrLiveDetailsData selectDrLiveDetailsDataById(String id)
    {
        return drLiveDetailsDataMapper.selectDrLiveDetailsDataById(id);
    }

    /**
     * 查询达人直播数据列表
     * 
     * @param drLiveDetailsData 达人直播数据
     * @return 达人直播数据
     */
    @Override
    public List<DrLiveDetailsData> selectDrLiveDetailsDataList(DrLiveDetailsData drLiveDetailsData)
    {
        return drLiveDetailsDataMapper.selectDrLiveDetailsDataList(drLiveDetailsData);
    }

    /**
     * 新增达人直播数据
     * 
     * @param drLiveDetailsData 达人直播数据
     * @return 结果
     */
    @Override
    public int insertDrLiveDetailsData(DrLiveDetailsData drLiveDetailsData)
    {
        return drLiveDetailsDataMapper.insertDrLiveDetailsData(drLiveDetailsData);
    }

    /**
     * 修改达人直播数据
     * 
     * @param drLiveDetailsData 达人直播数据
     * @return 结果
     */
    @Override
    public int updateDrLiveDetailsData(DrLiveDetailsData drLiveDetailsData)
    {
        return drLiveDetailsDataMapper.updateDrLiveDetailsData(drLiveDetailsData);
    }

    /**
     * 批量删除达人直播数据
     * 
     * @param ids 需要删除的达人直播数据主键
     * @return 结果
     */
    @Override
    public int deleteDrLiveDetailsDataByIds(String[] ids)
    {
        return drLiveDetailsDataMapper.deleteDrLiveDetailsDataByIds(ids);
    }

    /**
     * 删除达人直播数据信息
     * 
     * @param id 达人直播数据主键
     * @return 结果
     */
    @Override
    public int deleteDrLiveDetailsDataById(String id)
    {
        return drLiveDetailsDataMapper.deleteDrLiveDetailsDataById(id);
    }
}
